﻿using System;


class Call
{
    private DateTime dt;
    private string phoneNumber;
    private int duration;
    public Call()
    {
        dt = DateTime.Now;
        phoneNumber = "";
        duration = 0;
    }
    public Call(string phoneNumber, int dur)
    {
        dt = DateTime.Now;
        this.phoneNumber = phoneNumber;
        duration = dur;
    }
    public override string ToString()
    {
        return "Time: " + dt + ", duration: " + duration + ", phone: " + phoneNumber;
    }
    public int Duration
    {
        get { return duration; }
    }
}

